﻿using LostOrFind.Models;

namespace LostOrFind.Repositories;

public interface IOccasionRepository
{
    int AddOccasion(Occasion occasion);
    int DeleteOccasion(int occasionId,string userName);
    // 更改或者添加一个 对象
    int UpdateOccasion(Occasion occasion);
    Occasion? GetOccasionById(int occasionId);
    IList<Occasion> GetOccasionByUserId(int userId);
    IList<Occasion> GetOccasionByRange(int from, int to,bool lost);
}